package gui_2.panel;

import javax.swing.*;
import java.awt.*;

public class FloorPanel extends JPanel {

    JButton b1, b2, b3, b4, b5;

    JTextField text1;

    public FloorPanel() {
        this.setSize(600,300);
        this.setBackground(Color.BLUE);

        b1 = new JButton("第一个");
        b2 = new JButton("上一个");
        b3 = new JButton("下一个");
        b4 = new JButton("最后一个");
        b5 = new JButton("转到");

        text1 = new JTextField(2);

        // 绑定点击事件
//        b3.addActionListener(new ActionListener() {
//            @Override
//            public void actionPerformed(ActionEvent e) {
//                System.out.println("fjodsajf");
//            }
//        });

        this.add(b1);
        this.add(b2);
        this.add(b3);
        this.add(b4);
        this.add(text1);
        this.add(b5);
    }
}
